import request from '@/utils/request'

export default {

  // 通过id查询
  findVideoById(vid) {
    return request({
      url: `/video/${vid}`,
      method: "get"
    })
  },
  // 添加操作
  addVideo(data) {
    return request({
      url: `/video`,
      method: "post",
      data
    })
  },
  //删除操作
  removeVideoById(vid) {
    return request({
      url: `/video/${vid}`,
      method: "delete"
    })
  }

}
